<nz-modal [(nzVisible)]="visible" [nzTitle]="detailItem.id ? '修改申请' : '新增申请'" [nzMaskClosable]="false"
  (nzOnCancel)="onCancel()" [nzFooter]="nzModalFooter" nzWidth="600">
  <form nz-form #eitorForm="ngForm">

    <nz-form-item>
      <nz-form-label nzFor="title" [nzSpan]="9">申请学校</nz-form-label>
      <nz-form-control [nzSpan]="15">
        {{schoolDto.name}}
      </nz-form-control>
    </nz-form-item>

    <nz-form-item class="mb-md">
      <nz-form-label [nzSpan]="9" nzRequired>申请专业</nz-form-label>
      <nz-form-control [nzSpan]="15" [nzErrorTip]="erroremajorIds"
        [nzValidateStatus]="majors.invalid && (majors.dirty || majors.touched) ? 'error' : ''" nzHasFeedback>
        <app-major-select #majorSelectComponent #majors="ngModel" autocomplete="off" [(ngModel)]="detailItem.majors"
          name="majors" placeholder="申请专业" required></app-major-select>
        <ng-template #erroremajorIds let-control>
          <ng-container *ngIf="majors.hasError('required')">
            请选择申请专业!
          </ng-container>
        </ng-template>
      </nz-form-control>
    </nz-form-item>

    <nz-form-item>
      <nz-form-label nzFor="title" [nzSpan]="9">电话号码</nz-form-label>
      <nz-form-control [nzSpan]="15">
        <input nz-input [(ngModel)]="detailItem.phoneNumber" name="phoneNumber" placeholder="电话号码" />
      </nz-form-control>
    </nz-form-item>

    <nz-form-item class="mb-md">
      <nz-form-label nzFor="enterprise" [nzSpan]="9">专业分数</nz-form-label>
      <nz-form-control [nzSpan]="15">
        <nz-input-number nz-input [(ngModel)]="detailItem.specialty_score" name="specialty_score" placeholder="专业分数">
        </nz-input-number>

      </nz-form-control>
    </nz-form-item>



    <nz-form-item>
      <nz-form-label name="date" [nzSpan]="9">雅思分数</nz-form-label>
      <nz-form-control [nzSpan]="15">
        <nz-input-number nz-input [(ngModel)]="detailItem.ielts" name="ielts" placeholder="雅思分数"></nz-input-number>


      </nz-form-control>
    </nz-form-item>


    <nz-form-item class="mb-md">
      <nz-form-label nzFor="content" [nzSpan]="9">签证办理时间</nz-form-label>
      <nz-form-control [nzSpan]="15">
        <nz-date-picker name="visa_processing_time" [(ngModel)]="detailItem.visa_processing_time"
          (ngModelChange)="changeDate($event,'visa_processing_time')"></nz-date-picker>

      </nz-form-control>
    </nz-form-item>


    <nz-form-item class="mb-md">
      <nz-form-label nzFor="type" [nzSpan]="9">机票与宿舍申请时间</nz-form-label>
      <nz-form-control [nzSpan]="15">
        <nz-date-picker name="ticket_home_time" [(ngModel)]="detailItem.ticket_home_time"
          (ngModelChange)="changeDate($event,'ticket_home_time')"></nz-date-picker>

      </nz-form-control>
    </nz-form-item>

    <nz-form-item class="mb-md">
      <nz-form-label nzFor="type" [nzSpan]="9">备注</nz-form-label>
      <nz-form-control [nzSpan]="15">
        <textarea nz-input name="remake" placeholder="备注" [(ngModel)]="detailItem.remake"
          [nzAutosize]="{ minRows: 2, maxRows: 6 }"></textarea>
      </nz-form-control>
    </nz-form-item>
  </form>
  <ng-template #nzModalFooter>
    <button nz-button nzType="default" (click)="onCancel()">取消</button>
    <button nz-button nzType="primary" [nzLoading]="loading" (click)="validate(true)"
      [acl]="['MESSAGES_CREATE', 'MESSAGES_UPDATE']">
      确定
    </button>
  </ng-template>
</nz-modal>
